package com.xbongbong.workflow.model;

import com.xbongbong.workflow.domain.entity.WorkflowExecutionEntity;

import java.util.List;
import java.util.Map;


/**
 * @author 魏荣杰
 */
public interface WorkflowExecutionModel {
   Long insert(WorkflowExecutionEntity entity);

   void insertBatch(List<WorkflowExecutionEntity> list);

   List<WorkflowExecutionEntity> findEntities(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   void update(WorkflowExecutionEntity entity);

   WorkflowExecutionEntity getByKey(Long key, String corpid);
}
